package com.njym.java.security.app.biz;

import com.njym.java.annotation.Cache;
import com.njym.java.security.app.entity.FamilyInform;
import com.njym.java.security.app.mapper.FamilyInformMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-05 13:55:26
 */
@Service
public class FamilyInformBiz extends BaseBiz<FamilyInformMapper,FamilyInform> {

	@Cache(key = "getInform")
	public List<FamilyInform> getInform(){
		Example example = new Example(FamilyInform.class);
		example.createCriteria().andEqualTo("status",1);
		return selectByExample(example);
	}
}